package cn.hiema;

/*
    增加属性：
			学校school、学号stuNumber；
		重写工作方法（学生的工作是学习）。
 */

public class Student extends Person{

    private String school;

    private String stuNumber;

    @Override
    public void work(){

        System.out.println(getName()+"需要学习");
    }

    public Student() {
    }

    public Student(String school, String stuNumber) {

        this.school = school;
        this.stuNumber = stuNumber;
    }

    public Student(String name, String gender, String age, String nationality, String school, String stuNumber) {
        super(name, gender, age, nationality);
        this.school = school;
        this.stuNumber = stuNumber;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getStuNumber() {
        return stuNumber;
    }

    public void setStuNumber(String stuNumber) {
        this.stuNumber = stuNumber;
    }
}



